﻿<%@ Page Title="桌面屏保" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    Inherits="Wjtour.Web.Front.downloadscreen" %>

<%@ Import Namespace="Wjtour.Domain" %>
<%@ Import Namespace="Wjtour.Common" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script language="javascript">
        $(document).ready(function () {
            var num = 0; // 通过这个数字来控制显示的子菜单
            sidermenuclick(num);

            var thisurl = location.href;
            var arrurl = thisurl.split("/");
            $('.sidertitle ul li a[href="' + arrurl[arrurl.length - 1] + '"]').parent().css("background", "#FFFFFF");
        });
        // 侧面菜单控制
        var sidermenuclick = (function (num) {
            $('.sidertitle ul').animate({ height: 'hide' });
            $('.sidertitle li').css('border-bottom', '1px solid #d9dada');
            $('.sidertitle ul li').css('border-bottom', '0px');
            $('.sidertitle ul:eq(' + num + ')').animate({
                height: 'toggle'
            });
            $('.sidertitle ul:eq(' + num + ')').parent().css("border", "0px");
        });
        // 工具
        var changebg = (function (id) {
            $('#tool').attr('src', 'css/images/littletool0' + id + '.png');
        });

        // form
        var showadd = (function () {
            $('.ictitle input').animate({ height: "hide" });
            $('.addcomplaintform').animate({ height: 'show' });
        });
        var hideadd = (function () {
            $('.ictitle input').animate({ height: "show" });
            $('.addcomplaintform').animate({ height: 'hide' });
        });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="content" runat="server">
    <div class="ipage indexpage">
        <!--左侧-->
        <div class="inpageleft">
            <div class="siderbox">
                <img src="css/images/interactivetitle.png" />
                <ul class="sidertitle">
                    <li>
                        <a href="complaints.aspx">
                            <img src="css/images/iccomplaints.png" /></a>
                    </li>
                    <li>
                        <img src="css/images/icdownload.png" />
                        <ul>
                            <li><a href="downloadwall.aspx">精美壁纸</a></li>
                            <li><a href="downloadscreen.aspx">桌面屏保</a></li>
                            <li><a href="downloadmag.aspx">电子杂志</a></li>
                        </ul>
                    </li>
                    <li>
                        <a href="travelguide.aspx">
                            <img src="css/images/icarticle.png" /></a>
                    </li>
                    <li>
                        <a href="traveladvice.aspx">
                            <img src="css/images/icquestion.png" /></a>
                    </li>
                </ul>
            </div>
            <!--侧导航下方-->
            <br />
            <img src="css/images/line01.png" />
            <br />
            <div class="siderbox havebg">
                <img src="css/images/weixin.png" /><img src="css/images/littletool0.png" border="0" usemap="#toolMap" id="tool" />
                <map name="toolMap" id="toolMap">
                    <area shape="rect" coords="8,4,61,52" onmouseover="changebg(1);" href="http://www.17u.cn/scenery/" target="_blank" />
                    <area shape="rect" coords="70,6,122,55" onmouseover="changebg(2);" href="http://bus.17u.cn/" target="_blank" />
                    <area shape="rect" coords="132,7,186,53" onmouseover="changebg(3);" href="http://www.114best.com/tel/" target="_blank" />
                    <area shape="rect" coords="9,61,59,104" href="http://www.sqk.com.cn/index.asp" target="_blank" onmouseover="changebg(4);" />
                    <area shape="rect" coords="68,60,124,109" onmouseover="changebg(5);" href="http://www.17u.cn/tianqi/" target="_blank" />
                    <area shape="rect" coords="133,58,185,107" href="http://www.17u.cn/flight/flightyuyue.aspx" target="_blank" onmouseover="changebg(6);" />
                </map>

                <div class="magz">
                    <%if (LatestMagazine != null)
                      {
                          if (!string.IsNullOrEmpty(LatestMagazine.logo))
                          {%>
                    <img src="<%=LatestMagazine.logo %>" style="width: 81px; height: 100px;" />
                    <%} %>
                    <div>
                        <h6>电子杂志<span>[<a href="downloadmag.aspx">全部</a>]</span></h6>
                        <span><%=Utility.CutString(Utility.StripHtml(LatestMagazine.introduce),10,false) %></span>
                        <input type="button" value=" " onclick="down('<%=LatestMagazine.pdfpath %>    ')" />
                    </div>
                    <%} %>
                </div>

                <img src="css/images/littledown.png" border="0" usemap="#Map" class="downicon" />
                <map name="Map" id="Map1">
                    <area shape="rect" coords="3,25,88,77" href="downloadscreen.aspx" />
                    <area shape="rect" coords="104,29,187,78" href="downloadwall.aspx" />
                </map>
            </div>

        </div>

        <!--右侧-->
        <div class="inpageright">
            <div class="icpath">
                当前位置：<a href="/">首页</a> &gt; 互动社区 &gt; 下载专区
            </div>
            <br />
            <div class="downtitle">
                <span><a href="downloadwall.aspx">精美壁纸</a></span>
                <span class="sel"><a href="downloadscreen.aspx">桌面屏保</a></span>
                <span><a href="downloadmag.aspx">电子杂志</a></span>
            </div>
            <div class="clear"></div>
            <div class="content">
                <ul class="imglist">
                    <%if (data.Datas != null && data.Datas.Count > 0)
                      {%>
                    <%for (int i = 0; i < data.Datas.Count; i++)
                      {
                          var item = data.Datas[i];
                    %>
                    <li>
                        <%if (!string.IsNullOrEmpty(item.picturepath))
                          { %>
                        <img src="<%=item.smallImg %>" data-src="<%=item.picturepath %>" data-rar="<%=item.rar %>" />
                        <%}
                          else
                          { %>
                        <img src="css/images/tmp07.png" />
                        <%} %><br />
                        <%=item.picturetitle %><br />
                        <input type="button" value="下载" /><br />
                    </li>
                    <%}
                      } %>
                </ul>
                <div class="clear"></div>
                <!-- 分页 -->

                <%=PagnationHtml %>
            </div>
        </div>
        <div class="clear"></div>
    </div>
    <script type="text/javascript">
        $("input[type='button'][value='下载']").click(function () {
            var img = $(this).parent().find("img");
            var src = img.data("src");
            var rar = img.data("rar");
            //alert(img.attr("src"));
            if(rar!=''){
                down(rar);
            }else{
                down(src);
            }
        });
    </script>
</asp:Content>

